/* 
 * File:   TUServer.h
 * Author: arschmitz
 *
 * Created on April 3, 2011, 12:12 PM
 */

#ifndef TUSERVER_H
#define	TUSERVER_H
#include "TigerUpdate.h"

class TUServer {
public:
    TUServer();
    TUServer(int port);
    TUServer(TUAddress acceptedAddress);
    ~TUServer();
    int waitForClient();
    int serveObject(TUObject *object, TUAddress *client);
private:
    TUAddress *myAddress;
    TUSocket *mySocket;
};

#endif	/* TUSERVER_H */

